<?php

declare(strict_types=1);

/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use Common\Middleware\Auth\AuthMiddleware;
use Common\Middleware\Http\ApiMiddleware;
use Common\Middleware\Http\CorsMiddleware;
use Common\Middleware\Sign\SignMiddleware;
use Common\Middleware\WebSocket\WsMiddleware;

return [
    'http' => [
        CorsMiddleware::class,
        ApiMiddleware::class,
        SignMiddleware::class,
        AuthMiddleware::class,
    ],
    'ws' => [
        WsMiddleware::class,
        \Hyperf\Tracer\Middleware\TraceMiddleware::class,
    ],
    'deviceReceptacle_tcp' => [
        \Common\Middleware\Tcp\TcpMiddleware::class
    ]
];
